revStartXMLData
Type
message
Summary
Sent to the current card when the revXMLCreateTree or revXMLCreateTreeFromFile function encounters data between tags while parsing an XML document.
Syntax
revStartXMLData <pElementData>
Description
Handle the revStartXMLData message if you want to build your own subset of an XML document.
The revXMLCreateTree or revXMLCreateTreeFromFile functions take XML data and parse it. When you call either of these functions, you can specify whether or not to send messages during the parsing operation.
If you have specified that you want the function to send messages, the revStartXMLData message is sent when the function encounters element data. If you have specified that you don't want messages sent, no revStartXMLData messages are sent.
Parameters
Name | Type | Description |
---|---|---|
pElementData | The text of the XML element currently being parsed. |
Examples
on revStartXMLData theData -- store data for this node
if field "Data" is empty then put theData into field "Data"
end revStartXMLData
Related
command: call
control structure: function
function: revXMLCreateTreeFromFile, revXMLCreateTree
glossary: current card, tag, message, XML document, function, XML
message: revXMLStartTree
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile